<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/resources/template/template.xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html">

    <ui:define name="content">
        <p:outputLabel value="Total Patient"/>
        <p:panel>
            <f:facet name="header">
                <h:panelGrid columns="2">                    
                    <p:outputLabel value="Date"/>
                    <p:clock pattern="dd MMMM yyyy" mode="server"  />           
                </h:panelGrid>
            </f:facet>

            <p:dataTable value="#{channelReportController.totalPatient}" var="bs" >
                <p:column headerText="Consultant">#{bs.consultant.person.nameWithTitle}</p:column> 
                <p:column headerText="Total">#{bs.billCount+bs.creditCount}</p:column>
                <p:column headerText="Fully Paid">#{bs.billCount+bs.billCount_c}</p:column>
                <p:column headerText="Paid Cancelled">#{bs.billCanncelCount+bs.creditCancelledCount}</p:column>        
                <p:column headerText="Refund">#{bs.refundedCount+bs.refundedCount_c}</p:column>
                <p:column headerText="Absent"></p:column>
                <p:summaryRow>
                    <p:column colspan="2"></p:column>
                    <p:column ></p:column>
                    <p:column ></p:column>
                    <p:column ></p:column>
                    <p:column ></p:column>
                </p:summaryRow>
            </p:dataTable>

        </p:panel>
    </ui:define>



</ui:composition>
